package com.test.group6.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {

	public static String FormatedDate(Date date) {
		SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");//设置日期格式
        String newDate=df.format(date);// new Date()为获取当前系统时间
        return newDate;
	}
	
	public static Date getRegisterDate() {
		Date systemDate=new Date();
		return systemDate;
	}
}
